HTML Fixes for Kindle: More on Self Publishing Your Kindle Book, or Tips for Touching Up HTML from Microsoft Word and Other Apps So Your Ebook Looks as Good as It Possibly Can by Aaron Shepard
Author:Aaron Shepard [Shepard, Aaron]
Language: eng
Format: epub, azw3, mobi
Publisher: Shepard Publications
Published: 2013-11-21T05:00:00+00:00
HTML Fixes for Paragraphs
A word processor or page layout program may omit a setting from its exported HTML when the value is zero or another default. That’s perfectly acceptable in HTML. The problem is that the Kindle may then assume a different value entirely.
If, for example, you set a zero first-line paragraph indent in Word, the exported HTML won’t include that instruction, because it’s already the HTML default. So, the Kindle won’t get the message and will then use its own default—which is to indent!
In From Word to Kindle, the workaround I offered for this was to set a first-line indent in Word of .01 inch or cm. This forces Word to write the instruction to HTML, while the indent is small enough not to be noticed. Though that solution works fine, a quick find-and-replace can change the HTML to what it really should be. For the inch measurement:
Find: text-indent:.7pt;
Replace: text-indent:0;
Word uses a similar trick of its own to eliminate space after a paragraph, setting it to .0001 point. You can easily clean that up, too:
Find: margin-bottom:.0001pt;
Replace: margin-bottom:0;
•
A similar problem may arise when you want left alignment for your text. Here again, the instruction may be left out of exported HTML, because it is already the default. But without the instruction, the Kindle will justify—add space within lines to produce a smooth right margin. And because the Kindle justifies without properly hyphenating, this will make any text look bad.
From Word to Kindle gives a workaround for this too, but the problem is much simpler to fix in HTML. In your source document, make sure you justify any text you want left-aligned—in other words, make it the opposite of how you want it to wind up. That guarantees that an instruction will be written to HTML. Then change the instruction in code with a find-and-replace, such as this one for HTML from Word:
Find: text-align:justify
Replace: text-align:left
Having provided this fix, I must also warn you that Amazon does not like forced left alignment in Kindle books. Amazon is very attached to the amateurish look of its incompetent justification. So, in the event that a customer complains or that KDP staff have occasion to examine your book, you may well receive a “Quality Notice” asking you to degrade your Kindle book to meet Amazon’s guidelines. And they will check back with you periodically until the issue is “resolved.”
So far, I have been able to withstand these depredations simply by explaining that I prefer to leave my book as is. But I’m not sure that approach will always work. So, you may see this or another of my books with full justification—at least until I can get the ticket closed and then upload a version with left alignment restored. Please don’t hold it against me.
•
As I said, most Kindles will happily scale fonts for the user when the sizes are based on points. So, you’d expect the same treatment for format spaces like indents and space before and after paragraphs when based on points or inches or centimeters.
Download
HTML Fixes for Kindle: More on Self Publishing Your Kindle Book, or Tips for Touching Up HTML from Microsoft Word and Other Apps So Your Ebook Looks as Good as It Possibly Can by Aaron Shepard.azw3
HTML Fixes for Kindle: More on Self Publishing Your Kindle Book, or Tips for Touching Up HTML from Microsoft Word and Other Apps So Your Ebook Looks as Good as It Possibly Can by Aaron Shepard.mobi
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Personalized inhaled bacteriophage therapy for treatment of multidrug-resistant Pseudomonas aeruginosa in cystic fibrosis by unknow(172479)
CONSORT 2025 statement: updated guideline for reporting randomized trials by unknow(80916)
Critical evaluation of the ProfiLER-02 study design and outcomes by Vivek Subbiah & Razelle Kurzrock(80501)
Cardiac gene therapy makes a comeback by Oliver J. Müller & Susanne Hille & Anca Kliesow Remes(80274)
Whisky: Malt Whiskies of Scotland (Collins Little Books) by dominic roskrow(74427)
Unveiling the design rules for tunable emission in graphene quantum dots: A high-throughput TDDFT and machine learning perspective by Şener Özönder & Mustafa Coşkun Özdemir & Caner Ünlü(50884)
A yeast-based oral therapeutic delivers immune checkpoint inhibitors to reduce intestinal tumor burden by unknow(40255)
Covalent hitchhikers guide proteins to the nucleus by Alexander F. Russell & Madeline F. Currie & Champak Chatterjee(40213)
Meet the Authors: Christopher R. Mansfield and Emily R. Derbyshire by Christopher R. Mansfield & Emily R. Derbyshire(40091)
Alkaline-earth metals promote propane dehydrogenation with carbon dioxide through geometric effects: Altering the reaction pathway by unknow(32728)
Induced iron vacancies boosting FeOOH loaded on sustainable Fenton-like collagen fiber membrane for efficient removal of emerging contaminants by unknow(32503)
Efficient electric-field-assisted photochemical conversion of methane to n-propanol exclusively over penetrated TiO2Ti hollow fibers by Guanghui Feng(32451)
Bi2SiO5 nanosheets as piezo-photocatalyst for efficient degradation of 2,4-Dichlorophenol by Hangyu Shi & Yifu Li & Lishan Zhang & Guoguan Liu & Qian Zhang & Xuan Ru & Shan Zhong(32381)
A novel NDIPTA organic heterojunction photocatalyst with built-in electric field for efficient hydrogen production by Jiahui Yang & Baojun Ma & Yongfa Zhu(32358)
Enhanced conversion of methane to liquid-phase oxygenates via hollow ferrite nanotube@horseradish peroxidase based photoenzymatic catalysis by Jun Duan & Shiying Fan & Xinyong Li & Shaomin Liu(32329)
Ordered macroporous superstructure of defective carbon adorned with tiny cobalt sulfide for selective electrocatalytic hydrogenation of cinnamaldehyde by Xiao-Shi Yuan & Sheng-Hua Zhou & San-Mei Wang & Wenbo Wei & Xiaofang Li & Xin-Tao Wu & Qi-Long Zhu(32255)
What's Done in Darkness by Kayla Perrin(27139)
Topological analysis of non-conjugated ethylene oxide cored dendrimers decorated with tetraphenylethylene: Insights from degree-based descriptors using the polynomial approach by A Theertha Nair & D Antony Xavier & Annmaria Baby & S Akhila(26515)
Investigation of mechanical and self-healing properties of hydroxyl-terminated polybutadiene functionalized with 2-ureido-4-pyrimidinone by Mohsen Kazazi & Mehran Hayaty & Ali Mousaviazar(26452)